<form id="addProductForm" action="{:U('Product/add')}" method="post">
 <div class="content-head">
      <div class="finder-title">
		<h2 class="head-title">添加产品</h2>
        <ul class="msgtopbor">
               <li><span class="spfl">
                   <span class="red">*</span>产品名称：</span>
                     <input name="name" type="text" class="inp required"  id="name" size="30" />
                </li>
                <li><span class="spfl">
                    <span class="red">*</span>产品英文代码：</span>
                       <input name="code" type="text" class="inp required" id="code" size="30"/>
                 </li>
                </ul>
           <div class="buttondiv"><button class="btn" id="newmember-edit-form-submit" type="submit"><span><span>保存</span></span></button></div>
          </div>
  </div>
</form>
  <script>
$(document).ready(function(){
    $("#addProductForm").validate();
  });
</script>